package net.ericaro.neojavagen.blocks;

/**
 * <b>LocalVariableDeclaration</b> ::= <{@link net .ericaro .neojavagen .classes .VariableModifiers VariableModifiers}> <
 * {@link net .ericaro .neojavagen .types .Type Type}> <{@link net .ericaro .neojavagen .classes .VariableDeclarators VariableDeclarators}>
 * 
 * @author eric@ericaro.net
 */
public class LocalVariableDeclaration extends net.ericaro.neojavagen.JavaPartComposition implements net.ericaro.neojavagen.blocks.ForInit {
	private net.ericaro.neojavagen.types.Type type;

	private net.ericaro.neojavagen.classes.VariableDeclarators variableDeclarators;

	private net.ericaro.neojavagen.classes.VariableModifiers variableModifiers;

	public LocalVariableDeclaration(net.ericaro.neojavagen.classes.VariableModifiers variableModifiers, net.ericaro.neojavagen.types.Type type, net.ericaro.neojavagen.classes.VariableDeclarators variableDeclarators) {
		super();
		this.variableModifiers = variableModifiers;
		this.type = type;
		this.variableDeclarators = variableDeclarators;
	}

	public net.ericaro.neojavagen.types.Type getType() {
		return type;
	}

	public net.ericaro.neojavagen.classes.VariableDeclarators getVariableDeclarators() {
		return variableDeclarators;
	}

	public net.ericaro.neojavagen.classes.VariableModifiers getVariableModifiers() {
		return variableModifiers;
	}

	public void setType(net.ericaro.neojavagen.types.Type type) {
		this.type = type;
	}

	public void setVariableDeclarators(net.ericaro.neojavagen.classes.VariableDeclarators variableDeclarators) {
		this.variableDeclarators = variableDeclarators;
	}

	public void setVariableModifiers(net.ericaro.neojavagen.classes.VariableModifiers variableModifiers) {
		this.variableModifiers = variableModifiers;
	}

	@Override
	public java.lang.String toString() {
		return print(variableModifiers, type, variableDeclarators);
	}
}
